import React from 'react';

import Constants from '../../common/Constants';
import CommonRequestDataAction from '../common/CommonRequestDataAction';

export default class HeartVolunteerRequestPostListAction extends CommonRequestDataAction {
  constructor() {
    super();

    this.moduleType = Constants.MODULE_TYPE.HEART;
    this.name = "HeartVolunteerRequestPostListAction";
  }

  finish(data, isSucceed, response) {
    let listData = null;
    if(isSucceed) {
      listData = data;
    }
    this.caller.setState({
      listData: listData,
      isUpdateContent: true,
    })
  }
}
